package cn.lyjuan.payment.third.base.common.enums.impl;

import cn.lyjuan.payment.third.base.common.enums.ICodeEnum;
import cn.lyjuan.payment.third.base.pay.enums.SimpleChlEnum;

/**
 * 支付渠道
 */
public enum ChlEnum implements ICodeEnum
{
    /**
     * 微信公众号
     */
    WX_MP(11, "WX_MP", SimpleChlEnum.WX_MP)
    /**
     * 微信开放平台
     */
    , WX_OPEN(12, "WX_OPEN", SimpleChlEnum.WX_OPEN)
    /**
     * 支付宝
     */
    , ALI(21, "ALI", SimpleChlEnum.ALI)
    /**
     * IOS（苹果）
     */
    , IAP(31, "IAP", SimpleChlEnum.IAP);

    private Integer code;

    private String name;

    private SimpleChlEnum simpleChlEnum;

    @Override
    public Integer getCode()
    {
        return this.code;
    }

    public String getName()
    {
        return this.name;
    }

    public SimpleChlEnum getSimpleChlEnum()
    {
        return simpleChlEnum;
    }

    ChlEnum(Integer code, String name, SimpleChlEnum simpleChlEnum)
    {
        this.code = code;
        this.name = name;
        this.simpleChlEnum = simpleChlEnum;
    }
}
